package com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.vo;

import com.pingplusplus.model.Charge;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by lili19289 on 2016/12/22.
 */
public class WebhooksEvent implements Serializable{

    public String id;//由 Ping++ 生成，28 位长度字符串。
    public String object;//值为 "event"。
    public boolean livemode;//事件是否发生在生产环境。
    public long created;//事件发生的时间
    public int pending_webhooks;//推送未成功的 webhooks 数量
    public String type;//事件类型
    public String request;//API Request ID。值 "null" 表示该事件不是由 API 请求触发的
    public ResultData data;//定在事件上的数据对象,具体参考下表  data 参数说明
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getObject() {
        return object;
    }
    public void setObject(String object) {
        this.object = object;
    }
    public boolean isLivemode() {
        return livemode;
    }
    public void setLivemode(boolean livemode) {
        this.livemode = livemode;
    }
    public long getCreated() {
        return created;
    }
    public void setCreated(long created) {
        this.created = created;
    }
    public int getPending_webhooks() {
        return pending_webhooks;
    }
    public void setPending_webhooks(int pending_webhooks) {
        this.pending_webhooks = pending_webhooks;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getRequest() {
        return request;
    }
    public void setRequest(String request) {
        this.request = request;
    }


    public ResultData getData() {
        return data;
    }
    public void setData(ResultData data) {
        this.data = data;
    }

    public class ResultData implements Serializable{
        Object object;

        public Object getObject() {
            return object;
        }

        public void setObject(Object object) {
            this.object = object;
        }
    }
}
